namespace TfsReportRenderer
{
    using System.Collections.Generic;
    using System.Globalization;

    using Microsoft.TeamFoundation.TestManagement.Client;

    /// <summary>The test plan entity.</summary>
    public class TestPlan
    {
        /// <summary>Gets or sets the id of the test plan.</summary>
        public int Id { get; set; }

        /// <summary>Gets or sets the name of the test plan.</summary>
        public string Name { get; set; }

        /// <summary>Gets or sets the test suites contained in this plan.</summary>
        public List<ITestSuiteBase> TestSuites { get; set; }

        /// <summary>Returns ID, name and count of suites.</summary>
        /// <returns>The <see cref="string"/>.</returns>
        public override string ToString()
        {
            return string.Format(CultureInfo.InvariantCulture, "{0}, {1} ({2} suites)", this.Id, this.Name, this.TestSuites.Count);
        }
    }
}